import { createStore } from 'vuex'
import editform from './editform'
import layouts from './layouts'
import dataform from './dataform'
import templates from './templates'
import ecouser from './ecouser/index'
import publishform from './publishform'
import preview from './preview'
import actions from './actions'
import mutations from './mutations'
import state from './state'
import getters from './getters'

export default createStore({
  state,
  getters,
  mutations,
  actions,
  modules: {
    dataform,
    ecouser,
    editform,
    templates,
    publishform,
    preview,
    layouts
  }
})
